package com.tulele.vtool.service;

import com.tulele.vtool.model.*;
import com.tulele.vtool.model.combinedEntity.SlideshowCombinedEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysGzhService {
    /**
     * 根据公众号标识查询缓存链接
     *
     * @param gzhCode
     * @return
     */
    SysGzh selectCacheLinkByGzhCode(String gzhCode);

    PlatformSysInfo getPlatformSysInfo(String gzhCode);

    PlatformSysInfo getPlatformSysInfoByAppId(String appId);

    GzhBrandMap getGzhBrandMap(Integer brandId);

    List<Integer> getGzhBrandMapByGzh(String gzhCode);

    GzhUserMap getGzhUserMap(Integer sUserId, String tGzhCode);

    GzhUserMap checkGzhUserMap(Integer sUserId, Integer tUserId);

    int addGzhUserMap(GzhUserMap gzhUserMap);

    SysRealmMessage getRealmByGzhCode(String gzhCode);

    List<SysRealmMessage> getRealmByGzhCodeList(String gzhCode);

    /**
     * 根据会员状态获取公众号的访问域名
     * @param gzhCode 公众号标识
     * @return
     */
    SysRealmMessage getGzhCodeRealmByVipStatus(String gzhCode);

    /**
     * 获取公众号的轮播图
     * @param gzhCode 公众号标识
     * @return 公众号的轮播图列表
     */
    List<SlideshowCombinedEntity> getGzhSlideshow(String gzhCode);
}
